#include <ros/ros.h>
#include <custom_srv/custom.h>

bool Addcallback(custom_srv::custom::Request &req,custom_srv::custom::Response &resp)
{
    resp.sum = req.a + req.b;
    ROS_INFO("a+b= %ld ",resp.sum);
    return true;
}

int main(int argc, char *argv[])
{
    ros::init(argc,argv,"server_srv_node");
    ros::NodeHandle nh;

    ros::ServiceServer srv = nh.advertiseService("custom",Addcallback);
 
    ros::spin();
    return 0;
}
